<?php
namespace app\index\controller;

use app\BaseController;
use app\common\model\Cate;
use app\index\module\ArticleModule;
use app\Request;
use think\facade\View;


class Index extends BaseController {
    public function index(){
        View::assign("abc","value");
        return View::fetch();
    }

    public function detail(){
        return View::fetch();
    }

    public function menu(Request $request){
        $id = $request->param('id');
        if(empty($id)){
            $data = ArticleModule::page()->select()->toArray();
            var_dump($data);
        }
        return View::fetch();
    }

}